function [path, sender, receiver] = checkingAvailabilityOfPath(pathTable, disp_loc, R)
    k = length(pathTable);
    path = 1;
    counter = 1;
    sender = zeros(1,1);
    receiver = zeros(1,1);
    for i = 1 : k
       node1 = pathTable(i); 
       j = i + 1;       
       if j <= k
           node2 = pathTable(j);
           [x1,y1]=find_Coordinates(node1, disp_loc);
           [x2,y2]=find_Coordinates(node2, disp_loc);
           dist = distance(x1,y1,x2,y2);           
           if dist > R
               path = 0;
               sender(counter) = node1;
               receiver(counter) = node2;
               counter = counter + 1;
           end
                
       end
       
    end
    
end